package cn.taichoo.server.service;

import java.util.List;

import cn.taichoo.server.domain.AppEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.web.domain.AjaxResult;

/**
 * App主，基本信息Service接口
 *
 * @author Wuzh
 * @date 2025-03-17
 */
public interface IAppService extends IService<AppEntity> {

    /**
     * 查询App主，基本信息
     *
     * @param id App主，基本信息主键
     * @return App主，基本信息
     */
    AppEntity selectAppEntityById(Long id);

    /**
     * 查询App主，基本信息列表
     *
     * @param appEntity App主，基本信息
     * @return App主，基本信息集合
     */
    List<AppEntity> selectAppEntityList(AppEntity appEntity);

    AjaxResult insert(AppEntity appEntity);

    AjaxResult updateAppById(AppEntity appEntity);

    AjaxResult deleteById(Long id);

    AppEntity getAppByPack(String packageName);

}
